﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Group.aspx.cs" Inherits="vtpsms.Customers.Group" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView runat="server" ID="grvGroup" AutoGenerateColumns="False" AllowPaging="True" PageSize="20" DataKeyNames="GroupId">
        <Columns>
            <asp:TemplateField HeaderText="STT">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="5%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên nhóm khách hàng" SortExpression="GroupName">
                <ItemTemplate>
                    <asp:Literal ID="ltName" runat="server" Text='<%# (string)Eval("GroupName") %>' />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Left" Width="250px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Sửa">
                <ItemTemplate>
                    <asp:ImageButton ID="imgBtnEdit" CommandArgument='<%# Bind("GroupId")%>' runat="server"
                        CausesValidation="false" CommandName="EditCommand" ImageUrl="~/Images/edit.gif"
                        ToolTip="Sửa" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="5%" />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Xóa">
                <ItemTemplate>
                    <asp:ImageButton ID="imgBtnDelete" CommandArgument='<%# Bind("GroupId")%>' runat="server"
                        CausesValidation="false" CommandName="DeleteCommand" ImageUrl="~/Images/delete.png"
                        ToolTip="Xóa" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="5%" />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
